//
//  RPViralInflectionBean.m
//  yilutongxing
//
//  Created by T&J on 2017/6/30.
//  Copyright © 2017年 YZE. All rights reserved.
//

#import "RPViralInflectionBean.h"


@implementation RPViralInflectionModel

+(instancetype)initFromSuperBean1:(RPViralInflectionBean *)data{
    RPViralInflectionModel *ins = [RPViralInflectionModel new];
    ins.viralinfection2_lgM = data.viralinfection2_lgM;
    ins.viralinfection2_lgG = data.viralinfection2_lgG;
    ins.viralinfection2_HSV = data.viralinfection2_HSV;
    ins.viralinfection1_CMV_DNA = data.viralinfection1_CMV_DNA;
    ins.viralinfection1_PP65 = data.viralinfection1_PP65;
    ins.viralinfection1_lgM = data.viralinfection1_lgM;
    ins.viralinfection1_lgG = data.viralinfection1_lgG;
    return ins;
}
+(instancetype)initFromSuperBean2:(RPViralInflectionBean *)data{
    RPViralInflectionModel *ins = [RPViralInflectionModel new];
    ins.viralinfection2_lgM = data.viralinfection2_lgM_2;
    ins.viralinfection2_lgG = data.viralinfection2_lgG_2;
    ins.viralinfection2_HSV = data.viralinfection2_HSV_2;
    ins.viralinfection1_CMV_DNA = data.viralinfection1_CMV_DNA_2;
    ins.viralinfection1_PP65 = data.viralinfection1_PP65_2;
    ins.viralinfection1_lgM = data.viralinfection1_lgM_2;
    ins.viralinfection1_lgG = data.viralinfection1_lgG_2;
    return ins;
}
-(RPViralInflectionBean*)pushData2Superbean1:(RPViralInflectionBean *)data{
    data.viralinfection1_lgG = self.viralinfection1_lgG;
    data.viralinfection1_lgM = self.viralinfection1_lgM;
    data.viralinfection1_PP65 = self.viralinfection1_PP65;
    data.viralinfection1_CMV_DNA = self.viralinfection1_CMV_DNA;
    data.viralinfection2_lgG = self.viralinfection2_lgG;
    data.viralinfection2_lgM = self.viralinfection2_lgM;
    data.viralinfection2_HSV = self.viralinfection2_HSV;
    return data;
}
-(RPViralInflectionBean*)pushData2Superbean2:(RPViralInflectionBean *)data{
    data.viralinfection1_lgG_2 = self.viralinfection1_lgG;
    data.viralinfection1_lgM_2 = self.viralinfection1_lgM;
    data.viralinfection1_PP65_2 = self.viralinfection1_PP65;
    data.viralinfection1_CMV_DNA_2 = self.viralinfection1_CMV_DNA;
    data.viralinfection2_lgG_2 = self.viralinfection2_lgG;
    data.viralinfection2_lgM_2 = self.viralinfection2_lgM;
    data.viralinfection2_HSV_2 = self.viralinfection2_HSV;
    return data;
}

@end

@implementation RPViralInflectionBean
- (id)copyWithZone:(NSZone *)zone{
    RPViralInflectionBean *virflec = [[[self class] allocWithZone:zone] init];
    virflec.viralinfection1_lgG = self.viralinfection1_lgG;
    virflec.viralinfection1_lgM = self.viralinfection1_lgM;
    virflec.viralinfection1_PP65 = self.viralinfection1_PP65;
    virflec.viralinfection1_CMV_DNA = self.viralinfection1_CMV_DNA;
    virflec.viralinfection2_lgG = self.viralinfection2_lgG;
    virflec.viralinfection2_lgM = self.viralinfection2_lgM;
    virflec.viralinfection2_HSV = self.viralinfection2_HSV;
    
    virflec.viralinfection1_lgG_2 = self.viralinfection1_lgG_2;
    virflec.viralinfection1_lgM_2 = self.viralinfection1_lgM_2;
    virflec.viralinfection1_PP65_2 = self.viralinfection1_PP65_2;
    virflec.viralinfection1_CMV_DNA_2 = self.viralinfection1_CMV_DNA_2;
    virflec.viralinfection2_lgG_2 = self.viralinfection2_lgG_2;
    virflec.viralinfection2_lgM_2 = self.viralinfection2_lgM_2;
    virflec.viralinfection2_HSV_2 = self.viralinfection2_HSV_2;
    
    return virflec;
}
@end
